< previous page page_108 next page >

Page 108
The use cases will also guide you in developing the components of the graphical user interface because they generally tell you how the users will use the proposed system.
Your style of coding will no doubt differ from others, but the general goal is to keep your code style and syntax as simple and clear as possible. Never mind the individualistic signature and artistic flair too many developers hope to instill in their code. Traceability among all the artifacts of the development process, including the use cases and code, is important. This is particularly true for future evolutionary activities such as maintenance and software evolution.
Summary
In this chapter, you learned the essence of object-oriented programming in Visual Basic. In other words, you learned how to make classes communicate with each other to carry out a behavior or set of behaviors for a proposed system. You also became familiar with design models and learned the importance of not deviating from the system's architecture. You received some background on generating code in Rational Rose and Visual Modeler, as well as on identifying the known technical constraints of Visual Basic. After you generated some sample code, you had an idea of how to put the finishing touches on the application.
Q&A
Q What are the two ways in which you can create properties in Visual Basic?
A With regular functions and subs and with built-in Property Get and Let methods (with an optional Property Set method for properties that reference objects).
Q What is encapsulation?
A The separation of a class's interface from its internal, private implementation.
Q What is interface inheritance?
A The specializing of another class's interface for a particular context. Classes that implement the interface of another class share a unique relationship that can resemble a hierarchy or abstractions.
Q What is polymorphism?
A The realization of one class's interface through the classes that implement the interface of that class in special, unique ways.

 
< previous page page_108 next page >

If you like this book, buy it!